import request from '@/utils/request';

// 查询患者信息列表
export function listPatient(query) {
	return request({
		url: '/account/patient/list',
		method: 'post',
		data: query,
	});
}

// 查询患者信息详细
export function getPatient(id) {
	return request({
		url: '/account/patient/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增患者信息
export function addPatient(data) {
	return request({
		url: '/account/patient/add',
		method: 'post',
		data: data,
	});
}

// 编辑患者信息
export function updatePatient(data) {
	return request({
		url: '/account/patient/edit',
		method: 'post',
		data: data,
	});
}

// 删除患者信息
export function delPatient(id) {
	return request({
		url: '/account/patient/remove',
		method: 'post',
		data: id,
	});
}

// 导出患者信息
export function exportPatient(query) {
	return request({
		url: '/account/patient/export',
		method: 'post',
		params: query,
	});
}
